﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AdminSystem.EntityFrameworkCore.Migrations
{
    public partial class addbirthday : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "Birthday",
                table: "Admins",
                type: "datetime2",
                nullable: true);

            migrationBuilder.UpdateData(
                table: "Admins",
                keyColumn: "AdminId",
                keyValue: 1,
                columns: new[] { "CreateTime", "Password" },
                values: new object[] { new DateTime(2024, 12, 31, 14, 1, 13, 274, DateTimeKind.Local).AddTicks(9209), "338bc26c28254cdc9d545b22eb7a740a" });

            migrationBuilder.UpdateData(
                table: "Admins",
                keyColumn: "AdminId",
                keyValue: 2,
                columns: new[] { "CreateTime", "Password" },
                values: new object[] { new DateTime(2025, 1, 5, 14, 1, 13, 274, DateTimeKind.Local).AddTicks(9275), "4d509c9fdff3492e84f9035331061404" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Birthday",
                table: "Admins");

            migrationBuilder.UpdateData(
                table: "Admins",
                keyColumn: "AdminId",
                keyValue: 1,
                columns: new[] { "CreateTime", "Password" },
                values: new object[] { new DateTime(2024, 12, 30, 10, 29, 18, 21, DateTimeKind.Local).AddTicks(8663), "734043dc17df48029c452ba3db70f7b9" });

            migrationBuilder.UpdateData(
                table: "Admins",
                keyColumn: "AdminId",
                keyValue: 2,
                columns: new[] { "CreateTime", "Password" },
                values: new object[] { new DateTime(2025, 1, 4, 10, 29, 18, 21, DateTimeKind.Local).AddTicks(8816), "26351fa4ef3c46a69c977b4768abb148" });
        }
    }
}
